package com.example.springbootsecurityjwt.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.example.springbootsecurityjwt.domain.Menu;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * @program: SpringBoot-Security-JWT
 * @description: 权限信息Mapper
 * @author: Coder_Pan
 * @create: 2022-03-22 17:48
 **/
@Mapper
public interface MenuMapper extends BaseMapper<Menu> {
    /**
     * 根据用户ID查询对应用户的权限信息
     * @param id
     * @return
     */
    List<String> selectPermsByUserId(Long id);

}
